<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--获取银行信息接口--%>
<%
    String skdwxz = Util.null2String(request.getParameter("skdwxz"));
    String khxz = Util.null2String(request.getParameter("khxz"));
    JSONObject dataJson = new JSONObject();
    RecordSet rs = new RecordSet();
    try {
        if (!"".equals(skdwxz)) {
            dataJson.put("type", "1");
            rs.executeQuery("select gysqc,gj,gysbm from uf_sapgyszsj where id=? ", skdwxz);
            if (rs.next()) {
                dataJson.put("gysqc", Util.null2String(rs.getString("gysqc")));
                dataJson.put("gj", Util.null2String(rs.getString("gj")));
                dataJson.put("gysbm", Util.null2String(rs.getString("gysbm")));
            }
        }
        if (!"".equals(khxz)) {
            dataJson.put("type", "2");
            rs.executeQuery("select khmcq,khbh from uf_sapkhzsj where id=? ", khxz);
            if (rs.next()) {
                dataJson.put("khmcq", Util.null2String(rs.getString("khmcq")));
                dataJson.put("khbh", Util.null2String(rs.getString("khbh")));
            }
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    out.print(dataJson.toJSONString());
%>


